<?php
// +----------------------------------------------------------------------
// | Lzzphp 定义一个存储路径的类
// +----------------------------------------------------------------------
// | http://my.oschina.net/mingtingling/blog/93377  （十二）
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: LIZHEN
// +----------------------------------------------------------------------
// | $Id: Path.class.php 2766 14-7-22 下午4:53 LIZHEN $
// +----------------------------------------------------------------------
// | Package Helper

class Path extends Base
{
    private static $_base = '';
    private static $_controller = '';
    private static $_action = '';

    public static function setBasePath($base)
    {
        self::$_base = $base;
    }

    public static function setController($controller)
    {
        self::$_controller = $controller;
    }

    public static function setAction($action)
    {
        self::$_action = $action;
    }

    public static function getBasePath()
    {
        return self::$_base;
    }

    public static function getController()
    {
        return self::$_controller;
    }

    public static function getAction()
    {
        return self::$_action;
    }

    public static function toString(){
        return "Path[" . self::$_base . "|" . self::$_controller . "|" . self::$_action ."]";
    }
} 